package com.kuang.snake;

import javax.swing.*;

//游戏的主启动类
public class startGame {
    public static void main(String[] args) {
        JFrame frame = new JFrame();

        frame.setBounds(10,10,900,750);
        frame.setResizable(false); //窗口大小不可变
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        //正常游戏界面都应该在面板上
        frame.add(new Gamepanel());

        frame.setVisible(true);

    }
}
